package com.alex.statistics.pojo.request.clusterAnalysis;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.List;

@Data
@Schema(description = "关联度分析请求参数")
public class CorrelationAnalysisRequest {
    @Schema(description = "待分析的数据集合，每个元素是一个变量的观测值序列", required = true,
            example = "[[1.2, 2.3, 3.4, 4.5], [5.6, 6.7, 7.8, 8.9], [9.1, 10.2, 11.3, 12.4]]")
    private List<double[]> data;

    @Schema(description = "相关系数计算方法", allowableValues = {"pearson", "spearman", "kendall"}, example = "pearson")
    private String method = "pearson";

    @Schema(description = "变量名称列表", example = "[\"变量A\", \"变量B\", \"变量C\"]")
    private List<String> variableNames;
}    